﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Yes.Application.Article.Dto;
using Yes.Application.Category.Dto;
using Yes.Application.Comment.Dto;
using Yes.Domain.Context;
using Yes.Domain.Entity;

namespace Yes.Application
{
    public class YesMapper
    {
        public static void Initialize()
        {
            Mapper.Initialize(cfg =>
            {
                cfg.CreateMap<UserEntity, LoginInfo>();
                cfg.CreateMap<CategoryAddDto, CategoryEntity>();
                cfg.CreateMap<ArticleAddDto, ArticleEntity>();
                cfg.CreateMap<CommentAddDto, CommentEntity>();


            });
        }
    }
}
